package com.zjj.lbw.jdk.v8.map;

import java.util.Hashtable;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhanglei.zjj
 * @description ConcurrentHashMap 测试
 * @date 2023/8/20 17:52
 */
public class ConcurrentHashMapTest {
    public static void main(String[] args) {
        ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>();
        map.put("1", "1");
        map.put("2", "2");
        map.putIfAbsent("123", "223");

        Map<String, String> hashtable = new Hashtable<>();
    }
}
